package com.yc.jiushujie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 无罪
 * @since 2022-08-03
 */
@TableName("jsj_book")
public class JsjBook implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
private  int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public JsjUser getUser() {
        return user;
    }

    public void setUser(JsjUser user) {
        this.user = user;
    }

    @TableField(exist = false)
    private JsjUser user;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


    @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String name;

      /**
     * 作者
     */
      private String author;

      /**
     * 出版社
     */
      private String press;

      /**
     * 出版编号
     */
      private String isbn;

    private String intro;

      /**
     * 图片
     */
      private String pic;

      /**
     * 分类
     */
      private String category;

      /**
     * 售价
     */
      private String price;

      /**
     * 标价（原价）
     */
      private String markPrice;

      /**
     * 折扣
     */
      private String discount;

      /**
     * 新旧程度
     */
      private String oldnew;

      /**
     * 售卖人id
     */
      private Integer ownerId;

      /**
     * 备注，发布者说：。。。
     */
      private String remark;

      /**
     * 上架时间
     */
      private LocalDateTime upTime;

      /**
     * 状态
     */
      private Integer state;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public String getAuthor() {
        return author;
    }

      public void setAuthor(String author) {
          this.author = author;
      }
    
    public String getPress() {
        return press;
    }

      public void setPress(String press) {
          this.press = press;
      }
    
    public String getIsbn() {
        return isbn;
    }

      public void setIsbn(String isbn) {
          this.isbn = isbn;
      }
    
    public String getIntro() {
        return intro;
    }

      public void setIntro(String intro) {
          this.intro = intro;
      }
    
    public String getPic() {
        return pic;
    }

      public void setPic(String pic) {
          this.pic = pic;
      }
    
    public String getCategory() {
        return category;
    }

      public void setCategory(String category) {
          this.category = category;
      }
    
    public String getPrice() {
        return price;
    }

      public void setPrice(String price) {
          this.price = price;
      }
    
    public String getMarkPrice() {
        return markPrice;
    }

      public void setMarkPrice(String markPrice) {
          this.markPrice = markPrice;
      }
    
    public String getDiscount() {
        return discount;
    }

      public void setDiscount(String discount) {
          this.discount = discount;
      }
    
    public String getOldnew() {
        return oldnew;
    }

      public void setOldnew(String oldnew) {
          this.oldnew = oldnew;
      }
    
    public Integer getOwnerId() {
        return ownerId;
    }

      public void setOwnerId(Integer ownerId) {
          this.ownerId = ownerId;
      }
    
    public String getRemark() {
        return remark;
    }

      public void setRemark(String remark) {
          this.remark = remark;
      }
    
    public LocalDateTime getUpTime() {
        return upTime;
    }

      public void setUpTime(LocalDateTime upTime) {
          this.upTime = upTime;
      }
    
    public Integer getState() {
        return state;
    }

      public void setState(Integer state) {
          this.state = state;
      }

    @Override
    public String toString() {
        return "JsjBook{" +
              "id=" + id +
                  ", name=" + name +
                  ", author=" + author +
                  ", press=" + press +
                  ", isbn=" + isbn +
                  ", intro=" + intro +
                  ", pic=" + pic +
                  ", category=" + category +
                  ", price=" + price +
                  ", markPrice=" + markPrice +
                  ", discount=" + discount +
                  ", oldnew=" + oldnew +
                  ", ownerId=" + ownerId +
                  ", remark=" + remark +
                  ", upTime=" + upTime +
                  ", state=" + state +
              "}";
    }
}
